package com.atguigu.common.constant;

/**
 * @author: KK
 * @date: 2023/10/30 21:44
 * @email: 2551000940@qq.com
 * @Created with IntelliJ IDEA.
 */
public class WareConstant {
    public enum PurchaseStatusEnum{
        PURCHASE_STATUS_NEW(0,"新建"),
        PURCHASE_STATUS_ASSIGNED(1,"已分配"),
        PURCHASE_STATUS_RECEIVED(2,"已领取"),
        PURCHASE_STATUS_FINISHED(3,"已完成"),
        PURCHASE_STATUS_HASERROR(4,"有异常");
        private int code;
        private String msg;

        PurchaseStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum PurchaseStstusDeailEnum{
        PURCHASE_STATUS_NEW(0,"新建"),
        PURCHASE_STATUS_ASSIGNED(1,"已分配"),
        PURCHASE_STATUS_BUYING(2,"正在采购"),
        PURCHASE_STATUS_FINISHED(3,"已完成"),
        PURCHASE_STATUS_FAILED(4,"采购失败");
        private int code;
        private String msg;

        PurchaseStstusDeailEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
